<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.blockchain.console.servlets.financial.ptzjgl.PtzjglList"%>
<%@page import="com.blockchain.console.servlets.financial.tx.Txcg"%>
<%@page import="com.blockchain.console.servlets.financial.cz.CzglList"%>
<%@page import="com.blockchain.console.servlets.user.UserList"%>
<%@page import="com.blockchain.console.service.common.entity.IndexCount"%>
<%@page import="java.math.BigDecimal"%>
<%@page import="com.blockchain.console.servlets.common.Update"%>
<html>
<head>
<%@include file="/WEB-INF/include/meta.jsp"%>
<script type="text/javascript" src="<%=controller.getStaticPath(request)%>/backv2/js/echarts.common.min.js"></script>
<%@include file="/WEB-INF/include/style.jsp"%>
</head>
<%
	boolean isOneLogin=ObjectHelper.convert(request.getAttribute("isOneLogin"), Boolean.class);
	IndexCount indexCount = ObjectHelper.convert(request.getAttribute("indexCount"), IndexCount.class);
%>
<body>
	<%
		CURRENT_CATEGORY = "GL";
		CURRENT_SUB_CATEGORY="XXTJ";
	%>
	<%@include file="/WEB-INF/include/header.jsp"%>
	<div class="w_main">
		<div class="main clearfix">
			<div class="wrap">
				<div class="r_main">
					<div class="home_main">
						
						<!-- new918 -->
                        <div class="new918list">
                            <div class="new918listFixd">
                                <!-- <img src="images/new_images/1sd.png" alt="" /> -->
                                <div class="cujimg"></div>
                                <h3><%=indexCount.historyRegisterUser%></h3>
                                <h4>注册总人数</h4>
                            </div>
                            <div class="new918listFixd">
                                <!-- <img src="images/new_images/2sd.png" alt="" /> -->
                                <div class="cujimg1"></div>
                                <h3><%=request.getAttribute("btcTotal")%></h3>
                                <h4>BTC总计</h4>
                            </div>
                            <div class="new918listFixd">
                                <!-- <img src="images/new_images/3sd.png" alt="" /> -->
                                <div class="cujimg2"></div>
                                <h3><%=request.getAttribute("tradeTotal")%></h3>
                                <h4>累计交易额</h4>
                            </div>
                            <div class="new918listFixd">
                                <!-- <img src="images/new_images/4sd.png" alt="" /> -->
                                <div class="cujimg3"></div>
                                <h3><%=request.getAttribute("articalTotal")%></h3>
                                <h4>文章总数</h4>
                            </div>
                        </div>
                        <!-- new918 -->
                        
                        <!-- new折线图 922 -->
                        <div class="new922like" id="new922like" style="width:100%;height:350px;margin-top:40px;padding-top:30px;"></div>
                        <div class="new922like" id="newlike" style="width:100%;height:350px;"></div>

                        <script type="text/javascript">
                            inif()
                            function inif(){
                                ons()
                                twos()
                            }

                            function ons(){
                                var myCLine =  echarts.init(document.getElementById('new922like'));

                                var Options =  {
                                    title: {
                                        text: '统计报表'
                                    },
                                    tooltip : {
                                        trigger: 'axis',
                                        axisPointer: {
                                            type: 'cross',
                                            label: {
                                                backgroundColor: '#6a7985'
                                            }
                                        }
                                    },
                                    legend: {
                                        data:['邮件营销','联盟广告','视频广告','直接访问','搜索引擎']
                                    },
                                    // toolbox: {
                                    //     // feature: {
                                    //     //     saveAsImage: {}
                                    //     // }
                                    // },
                                    grid: {
                                        left: '3%',
                                        right: '4%',
                                        bottom: '3%',
                                        containLabel: true
                                    },
                                    xAxis : [
                                        {
                                            type : 'category',
                                            boundaryGap : false,
                                            data : ['周一','周二','周三','周四','周五','周六','周日']
                                        }
                                    ],
                                    yAxis : [
                                        {
                                            type : 'value'
                                        }
                                    ],
                                    backgroundColor : '#fff',
                                    series : [
                                        {
                                            name:'统计报表',
                                            type:'line',
                                            stack: '总量',
                                            areaStyle: {normal: {opacity:1}, },
                                            data:[120, 132, 101, 134, 90, 230, 210],
                                            color:['#199eff'],
                                        }
                                        // {
                                        //     name:'联盟广告',
                                        //     type:'line',
                                        //     stack: '总量',
                                        //     areaStyle: {normal: {}},
                                        //     data:[220, 182, 191, 234, 290, 330, 310]
                                        // },
                                        // {
                                        //     name:'视频广告',
                                        //     type:'line',
                                        //     stack: '总量',
                                        //     areaStyle: {normal: {}},
                                        //     data:[150, 232, 201, 154, 190, 330, 410]
                                        // },
                                        // {
                                        //     name:'直接访问',
                                        //     type:'line',
                                        //     stack: '总量',
                                        //     areaStyle: {normal: {}},
                                        //     data:[320, 332, 301, 334, 390, 330, 320]
                                        // },
                                        // {
                                        //     name:'搜索引擎',
                                        //     type:'line',
                                        //     stack: '总量',
                                        //     label: {
                                        //         normal: {
                                        //             show: true,
                                        //             position: 'top'
                                        //         }
                                        //     },
                                        //     areaStyle: {normal: {}},
                                        //     data:[820, 932, 901, 934, 1290, 1330, 1320]
                                        // }
                                    ]
                                }

                                myCLine.setOption(Options);
                            }


                            function twos(){
                                var newlike =  echarts.init(document.getElementById('newlike'));

                                var Options =  {
                                    title: {
                                        text: ''
                                    },
                                    tooltip : {
                                        trigger: 'axis',
                                        axisPointer: {
                                            type: 'cross',
                                            label: {
                                                backgroundColor: '#6a7985'
                                            }
                                        }
                                    },
                                    legend: {
                                        data:['邮件营销','联盟广告','视频广告','直接访问','搜索引擎']
                                    },
                                    // toolbox: {
                                    //     // feature: {
                                    //     //     saveAsImage: {}
                                    //     // }
                                    // },
                                    grid: {
                                        left: '3%',
                                        right: '4%',
                                        bottom: '3%',
                                        containLabel: true
                                    },
                                    xAxis : [
                                        {
                                            type : 'category',
                                            boundaryGap : false,
                                            data : ['周一','周二','周三','周四','周五','周六','周日']
                                        }
                                    ],
                                    yAxis : [
                                        {
                                            type : 'value'
                                        }
                                    ],
                                    backgroundColor : '#fff',
                                    series : [
                                        {
                                            name:'统计报表',
                                            type:'line',
                                            stack: '总量',
                                            areaStyle: {normal: {opacity:1},},
                                            data:[150, 232, 201, 154, 190, 330, 410],
                                            color : ['#769ab4']
                                        }
                                        // {
                                        //     name:'联盟广告',
                                        //     type:'line',
                                        //     stack: '总量',
                                        //     areaStyle: {normal: {}},
                                        //     data:[220, 182, 191, 234, 290, 330, 310]
                                        // },
                                        // {
                                        //     name:'视频广告',
                                        //     type:'line',
                                        //     stack: '总量',
                                        //     areaStyle: {normal: {}},
                                        //     data:[150, 232, 201, 154, 190, 330, 410]
                                        // },
                                        // {
                                        //     name:'直接访问',
                                        //     type:'line',
                                        //     stack: '总量',
                                        //     areaStyle: {normal: {}},
                                        //     data:[320, 332, 301, 334, 390, 330, 320]
                                        // },
                                        // {
                                        //     name:'搜索引擎',
                                        //     type:'line',
                                        //     stack: '总量',
                                        //     label: {
                                        //         normal: {
                                        //             show: true,
                                        //             position: 'top'
                                        //         }
                                        //     },
                                        //     areaStyle: {normal: {}},
                                        //     data:[820, 932, 901, 934, 1290, 1330, 1320]
                                        // }
                                    ]
                                }

                                newlike.setOption(Options);
                            }

                                
                        
                        </script>
						<div class="box2 clearfix"></div>
					</div>
				</div>
			</div>
			<%@include file="/WEB-INF/include/left.jsp"%>
		</div>
	</div>
	<%
		String message=controller.getPrompt(request,response, PromptLevel.WARRING);
		if(isOneLogin||!StringHelper.isEmpty(message))
		{
	%>
	<div class="popup_bg"></div>
	<div class="w440 thickbox thickpos" id="updatePass" style="margin: -120px 0 0 -220px;">
		<div class="tit">
			<span class="fl pl15">修改密码</span>
		</div>
		<form action="<%=controller.getURI(request, Update.class)%>" method="post">
			<div class="info clearfix">
				<div class="mb10 tc">为保障账户安全，首次登录请修改您的密码！</div>
				<div class="cell clearfix">
					<div class="list01">原密码：</div>
					<div class="list02">
						<input type="password" class="text required" name="oldPassWord"/>
						<p tip></p>
						<p errortip class="" style="display: none"></p>
					</div>
				</div>
				<div class="cell clearfix">
					<div class="list01">新密码：</div>
					<div class="list02">
						<input type="password" class="text required password-a" name="newPassWord1"/>
						<p tip></p>
						<p errortip class="" style="display: none"></p>
					</div>
				</div>
				<div class="cell clearfix">
					<div class="list01">重复新密码：</div>
					<div class="list02">
						<input type="password" class="text required password-b" name="newPassWord2"/>
						<p tip></p>
						<p errortip class="" style="display: none"></p>
					</div>
				</div>
				<div align="center">
						<font color="red" size="2">
							<%
								StringHelper.filterHTML(out,message);
							%>
						</font>
				</div>
				<div class="clear"></div>
				<div class="dialog_btn">
					<input type="submit" name="button2" id="button2" value="确认" class="btn4 ml50" />
				</div>
			</div>
		</form>
	</div>
	<%
		}
	%>
	<%-- <%@include file="/WEB-INF/include/footer.jsp"%>
	<%@include file="/WEB-INF/include/script.jsp"%> --%>
	<script type="text/javascript" src="<%=controller.getStaticPath(request)%>/js/login.js"></script>
	<script type="text/javascript" src="<%=controller.getStaticPath(request)%>/backv2/js/jquery/jquery-1.8.3.min.js"></script>
	<script type="text/javascript"
		src="<%=controller.getStaticPath(request)%>/js/validation.js"></script>
</body>
</html>